
package com.joysuch.wwyt.datadump.biz.convertor;

import cn.zlg.common.datadump.annotation.DataDumpField;
import cn.zlg.common.datadump.convertor.FieldValueConvert;
import com.joysuch.wwyt.bp.enums.ProductionFacilityStates;
import org.springframework.stereotype.Component;

@Component
public class ExportProductFacilityStateConvertor implements FieldValueConvert<Integer, String> {

    @Override
    public String convert(Object bean, Integer value, DataDumpField dataField) {
        return ProductionFacilityStates.findNameById(value);
    }

}
